﻿using OurWedding.Helpers;
using OurWedding.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace OurWedding.Controllers
{
    public class InvitationController : Controller
    {
        //
        // GET: /Invitation/

        public ActionResult Index(string key)
        {
            InvitationHelper helper = new InvitationHelper();
            Invitation inv = helper.GetInvitation(key);

            return View("Invitation", inv);
        }

    }
}
